<div class="heading">
	<h3><?php echo $judul_tabel; ?></h3>                    

	<div class="resBtnSearch">
		<a href="#"><span class="icon16 icomoon-icon-search-3"></span></a>
	</div>

	<div class="search">

		<form id="searchform" action="search.html">
			<input type="text" id="tipue_search_input" class="top-search" placeholder="Search here ..." />
			<input type="submit" id="tipue_search_button" class="search-btn" value=""/>
		</form>

	</div><!-- End search -->
	
	<ul class="breadcrumb">
		<li>You are here:</li>
		<li>
			<a href="<?php echo base_url(); ?>penggunaan" class="tip" title="Kembali ke List Penggunaan">
				<span class="icon16 icomoon-icon-screen-2"></span>
			</a> 
			<span class="divider">
				<span class="icon16 icomoon-icon-arrow-right-2"></span>
			</span>
		</li>
		<li class="active">Surat Jalan</li>
	</ul>

</div>

<!-- Build page from here: -->

<div class="row-fluid">

	<div class="span12">

		<div class="box gradient invoice">

			<div class="title clearfix">

				<h4 class="left">
					<span></span>
				</h4>
				<div class="print">
					<a href="javascript:viewPDF();" class="tip" title="Print Surat Jalan"><span class="icon24 icomoon-icon-printer-2"></span></a>
				</div>
				 <div class="invoice-info">
					<span class="number">No. <strong class="red">#<?php echo $penggunaan["nosuratjalan"]; ?></strong></span>
					<span class="data gray"><?php echo $penggunaan["tglsurat"]; ?></span>
					<div class="clearfix"></div>
				</div>

			</div>
			<div class="content">
				<table width="90%">
					<tr>
						<td width="60%"><img src="<?php echo base_url();?>images/logo_imr.png"></td>
						<td>
							<table>
								<tr><td><h3>PT. ISTANA MITRA RIAU</h3></td></tr>
								<tr><td>Taman Tekno Bumi Serpong Damai G3 No. 8</td></tr>
								<tr><td>Serpong Tangerang, Telp/ Fax : (021) 29338951</td></tr>
							</table>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center" style="padding-top:20px;"><h2><u>EQUIPMENT DELIVERY TOOLS</u></h2></td>
					</tr>
				</table>
				<table width="90%" border=1 cellpadding=4 cellspacing=0>
					<tr>
						<td align="center" colspan="2"><b>IMR EMPLOYEE</b></td>
						<td align="center"><b>District</b></td>
						<td align="center" colspan="2"><b>Checked By</b></td>
						<td align="center" width="170"><b>Delivery Number</b></td>
					</tr>
					<tr>
						<td align="center" colspan="2"><?php echo $penggunaan["pembuat"]; ?></td>
						<td align="center"><?php echo $penggunaan["daerah"]; ?></td>
						<td align="center" colspan="2"><?php echo $penggunaan["pemeriksa"]; ?></td>
						<td align="center"><?php echo $penggunaan["nosuratjalan"]; ?></td>
					</tr>
					<tr>
						<td rowspan="4" width="30" style="-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg);	">Delivered&nbsp;to</td>
						<td colspan="4" align="center"><b>To Party</b><br><br><?php echo $penggunaan["tujuan"]; ?></td>
						<td align="center"><b>Date</b><br><br><?php echo $penggunaan["tglsurat"]; ?></td>
					</tr>
					<tr>
						<td colspan="4" align="center"><b>Rig / Vendor Name</b><br><br><?php echo $penggunaan["rig"]." / ".$penggunaan["namavendor"]; ?></td>
						<td align="center"><b>Location</b><br><br><?php echo $penggunaan["lokasi"]; ?></td>
					</tr>
					<tr>
						<td colspan="4" align="center" valign="top">
							<table width="100%">
								<tr>
									<td align="center" width="50%"><b>Address</b></td>
									<td align="center"><b>Country</b></td>
								</tr>
								<tr>
									<td align="center" height="50" valign="bottom"><?php echo $penggunaan["alamat"]; ?></td>
									<td align="center" valign="bottom"><?php echo $penggunaan["negara"]; ?></td>
								</tr>
							</table>
						</td>
						<td align="center"><b>Requested By</b><br><br><div style="text-align: justify;"><?php echo $penggunaan["peminta"]; ?></div></td>
					</tr>
					<tr>
						<td align="center"><b>DELIVERY DATE</b></td>
						<td align="center"><?php echo $penggunaan["tglkirim"]; ?></td>
						<td align="center" colspan="2"><b>DEPARTURE TIME</b></td>
						<td align="center"></td>
					</tr>
					<tr>
						<td align="center"><b>No.</b></td>
						<td align="center"><b>ITEM</b></td>
						<td align="center"><b>SERIAL No.</b></td>
						<td align="center"><b>WEIGHT</b></td>
						<td align="center"><b>QTY</b></td>
						<td align="center"></td>
					</tr>
					<?php
					$loop = 1;
					foreach($penggunaandetail as $row){
						echo '<tr>
								<td align="center">'.$loop.'</td>
								<td align="left">'.$row["nmbarang"].' kg</td>
								<td align="center"></td>
								<td align="center">'.$row["berat"].' kg</td>
								<td align="center">1</td>
								<td align="center"></td>
							</tr>';
						$loop ++;
					}
					?>
					
					<tr>
						<td colspan="2">Employee Signature</td>
						<td colspan="2" height="50"></td>
						<td colspan="2" align="center">Remarks</td>
					</tr>
					<tr>
						<td colspan="2">Transport Company</td>
						<td colspan="2" align="center"><?php echo $penggunaan["transportasi"]; ?></td>
						<td colspan="2" align="center">Company Man</td>
					</tr>
					<tr>
						<td colspan="2">Driver Name</td>
						<td colspan="2"></td>
						<td colspan="2" rowspan="4"></td>
					</tr>
					<tr>
						<td colspan="2">Vehicle Number</td>
						<td colspan="2"></td>
					</tr>
					<tr>
						<td colspan="2">Contact Number</td>
						<td colspan="2"></td>
					</tr>
					<tr>
						<td colspan="2">Signature</td>
						<td colspan="2" height="50"></td>
					</tr>
				</table>
			</div>

		</div><!-- End .box -->

	</div>

</div><!-- End .row-fluid -->
<script>
	function  viewPDF() {
		window.open('<?php echo base_url()."penggunaan/pdf/".$penggunaan["nosuratjalan"]; ?>','1371981619957','width=800,height=600,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');
	}
</script>